// Most populated cities and corresponding openweathermap.org city ID.
export const cities = [
  { id: 98182, name: "Baghdad" },
  { id: 108410, name: "Riyadh" },
  { id: 112931, name: "Tehran" },
  { id: 160263, name: "Dar es Salaam" },
  { id: 188714, name: "Luanda" },
  { id: 360630, name: "Cairo" },
  { id: 361058, name: "Alexandria" },
  { id: 379252, name: "Khartoum" },
  { id: 379253, name: "Khartoum" },
  { id: 498817, name: "Saint Petersburg" },
  { id: 524894, name: "Moscow" },
  { id: 524901, name: "Moscow" },
  { id: 536203, name: "Saint Petersburg" },
  { id: 686502, name: "Alexandria" },
  { id: 745044, name: "Istanbul" },
  { id: 993800, name: "Johannesburg" },
  { id: 1023365, name: "Alexandria" },
  { id: 1172451, name: "Lahore" },
  { id: 1174872, name: "Karachi" },
  { id: 1176734, name: "Hyderabad" },
  { id: 1185241, name: "Dhaka" },
  { id: 1259229, name: "Pune" },
  { id: 1264527, name: "Chennai" },
  { id: 1269843, name: "Hyderabad" },
  { id: 1273294, name: "Delhi" },
  { id: 1275004, name: "Kolkata" },
  { id: 1275339, name: "Mumbai" },
  { id: 1279233, name: "Ahmedabad" },
  { id: 1298824, name: "Yangon" },
  { id: 1337178, name: "Dhaka" },
  { id: 1609348, name: "Bangkok" },
  { id: 1609350, name: "Bangkok" },
  { id: 1642911, name: "Jakarta" },
  { id: 1687800, name: "Santiago" },
  { id: 1687801, name: "Santiago" },
  { id: 1687812, name: "Santiago" },
  { id: 1687818, name: "Santiago" },
  { id: 1687825, name: "Santiago" },
  { id: 1687827, name: "Santiago" },
  { id: 1687834, name: "Santiago" },
  { id: 1701668, name: "Manila" },
  { id: 1704129, name: "Madrid" },
  { id: 1705545, name: "Los Angeles" },
  { id: 1726701, name: "Barcelona" },
  { id: 1726705, name: "Barcelona" },
  { id: 1726707, name: "Barcelona" },
  { id: 1726708, name: "Barcelona" },
  { id: 1733046, name: "Kuala Lumpur" },
  { id: 1735161, name: "Kuala Lumpur" },
  { id: 1791247, name: "Wuhan" },
  { id: 1792947, name: "Tianjin" },
  { id: 1793743, name: "Suzhou" },
  { id: 1795563, name: "Shenzhen" },
  { id: 1795564, name: "Shenzhen" },
  { id: 1795565, name: "Shenzhen" },
  { id: 1796236, name: "Shanghai" },
  { id: 1797929, name: "Qingdao" },
  { id: 1799962, name: "Nanjing" },
  { id: 1799963, name: "Nanjing" },
  { id: 1805753, name: "Jinan" },
  { id: 1808926, name: "Hangzhou" },
  { id: 1809858, name: "Guangzhou" },
  { id: 1811103, name: "Foshan" },
  { id: 1812531, name: "Dongguan" },
  { id: 1812537, name: "Dongguan" },
  { id: 1812543, name: "Dongguan" },
  { id: 1812544, name: "Dongguan" },
  { id: 1812545, name: "Dongguan" },
  { id: 1814087, name: "Dalian" },
  { id: 1814906, name: "Chongqing" },
  { id: 1815286, name: "Chengdu" },
  { id: 1816670, name: "Beijing" },
  { id: 1819729, name: "Hong Kong" },
  { id: 1835847, name: "Seoul" },
  { id: 1835848, name: "Seoul" },
  { id: 1850147, name: "Tokyo" },
  { id: 1853908, name: "Osaka" },
  { id: 1853909, name: "Osaka" },
  { id: 1856057, name: "Nagoya" },
  { id: 1863967, name: "Fukuoka" },
  { id: 1880252, name: "Singapore" },
  { id: 1886760, name: "Suzhou" },
  { id: 1919759, name: "Nanjing" },
  { id: 2034161, name: "Dalian" },
  { id: 2034937, name: "Shenyang" },
  { id: 2037013, name: "Harbin" },
  { id: 2147854, name: "Surat" },
  { id: 2240449, name: "Luanda" },
  { id: 2267226, name: "Lagos" },
  { id: 2270968, name: "Belo Horizonte" },
  { id: 2314302, name: "Kinshasa" },
  { id: 2332459, name: "Lagos" },
  { id: 2643743, name: "London" },
  { id: 2646507, name: "Houston" },
  { id: 2657513, name: "Alexandria" },
  { id: 2734637, name: "Santiago" },
  { id: 2968815, name: "Paris" },
  { id: 2988506, name: "Paris" },
  { id: 2988507, name: "Paris" },
  { id: 3117735, name: "Madrid" },
  { id: 3121070, name: "Guadalajara" },
  { id: 3128760, name: "Barcelona" },
  { id: 3405814, name: "Belo Horizonte" },
  { id: 3405825, name: "Belo Horizonte" },
  { id: 3407977, name: "Alexandria" },
  { id: 3435907, name: "Buenos Aires" },
  { id: 3435910, name: "Buenos Aires" },
  { id: 3436943, name: "Santiago" },
  { id: 3448433, name: "São Paulo" },
  { id: 3448439, name: "São Paulo" },
  { id: 3449741, name: "Santiago" },
  { id: 3451189, name: "Rio de Janeiro" },
  { id: 3451190, name: "Rio de Janeiro" },
  { id: 3470127, name: "Belo Horizonte" },
  { id: 3491593, name: "Alexandria" },
  { id: 3526709, name: "Santiago" },
  { id: 3530597, name: "Mexico City" },
  { id: 3582383, name: "Chicago" },
  { id: 3614583, name: "Buenos Aires" },
  { id: 3620603, name: "Buenos Aires" },
  { id: 3621520, name: "Santiago" },
  { id: 3621524, name: "Santiago" },
  { id: 3624593, name: "Buenos Aires" },
  { id: 3648559, name: "Barcelona" },
  { id: 3668396, name: "Santiago" },
  { id: 3668400, name: "Santiago" },
  { id: 3675707, name: "Madrid" },
  { id: 3688357, name: "Buenos Aires" },
  { id: 3688689, name: "Bogotá" },
  { id: 3699223, name: "Buenos Aires" },
  { id: 3797895, name: "Buenos Aires" },
  { id: 3871336, name: "Santiago" },
  { id: 3929051, name: "Santiago" },
  { id: 3936452, name: "Lima" },
  { id: 3936456, name: "Lima" },
  { id: 3983671, name: "Santiago" },
  { id: 3983689, name: "Santiago" },
  { id: 3996933, name: "Madrid" },
  { id: 4005539, name: "Guadalajara" },
  { id: 4016589, name: "Buenos Aires" },
  { id: 4104031, name: "Cairo" },
  { id: 4119617, name: "London" },
  { id: 4120426, name: "Manila" },
  { id: 4125402, name: "Paris" },
  { id: 4140963, name: "Washington, D.C." },
  { id: 4164138, name: "Miami" },
  { id: 4180439, name: "Atlanta" },
  { id: 4185632, name: "Cairo" },
  { id: 4190598, name: "Dallas" },
  { id: 4234985, name: "Cairo" },
  { id: 4246659, name: "Paris" },
  { id: 4282342, name: "Alexandria" },
  { id: 4298960, name: "London" },
  { id: 4303602, name: "Paris" },
  { id: 4314550, name: "Alexandria" },
  { id: 4321929, name: "Delhi" },
  { id: 4391354, name: "Houston" },
  { id: 4402452, name: "Paris" },
  { id: 4430529, name: "Houston" },
  { id: 4440906, name: "Philadelphia" },
  { id: 4462896, name: "Dallas" },
  { id: 4517009, name: "London" },
  { id: 4542692, name: "Miami" },
  { id: 4559210, name: "Lima" },
  { id: 4560349, name: "Philadelphia" },
  { id: 4647963, name: "Paris" },
  { id: 4671576, name: "Atlanta" },
  { id: 4684888, name: "Dallas" },
  { id: 4699066, name: "Houston" },
  { id: 4717560, name: "Paris" },
  { id: 4744091, name: "Alexandria" },
  { id: 4829861, name: "Alexandria" },
  { id: 4865871, name: "Madrid" },
  { id: 4883772, name: "Atlanta" },
  { id: 4887398, name: "Chicago" },
  { id: 4917537, name: "Alexandria" },
  { id: 4974617, name: "Paris" },
  { id: 4984500, name: "Atlanta" },
  { id: 5016108, name: "Alexandria" },
  { id: 5056033, name: "London" },
  { id: 5082573, name: "Alexandria" },
  { id: 5111056, name: "Cairo" },
  { id: 5114824, name: "Delhi" },
  { id: 5124411, name: "Lima" },
  { id: 5128581, name: "New York City" },
  { id: 5131095, name: "Philadelphia" },
  { id: 5160783, name: "Lima" },
  { id: 5174095, name: "Toronto" },
  { id: 5186266, name: "Dallas" },
  { id: 5194369, name: "Houston" },
  { id: 5202009, name: "Moscow" },
  { id: 5225919, name: "Alexandria" },
  { id: 5304640, name: "Miami" },
  { id: 5342522, name: "Delhi" },
  { id: 5367815, name: "London" },
  { id: 5368361, name: "Los Angeles" },
  { id: 5526233, name: "Miami" },
  { id: 5601538, name: "Moscow" },
  { id: 5603240, name: "Paris" },
  { id: 5717316, name: "Cairo" },
  { id: 5722064, name: "Dallas" },
  { id: 5777855, name: "Manila" },
  { id: 5864312, name: "Houston" },
  { id: 5883490, name: "Alexandria" },
  { id: 5937522, name: "Delhi" },
  { id: 5977783, name: "Houston" },
  { id: 6058560, name: "London" },
  { id: 6072606, name: "Miami" },
  { id: 6167865, name: "Toronto" },
  { id: 6321162, name: "Belo Horizonte" },
  { id: 6356055, name: "Barcelona" },
  { id: 6357912, name: "Guadalajara" },
  { id: 6359304, name: "Madrid" },
  { id: 6455259, name: "Paris" },
  { id: 6559994, name: "Buenos Aires" },
  { id: 6643959, name: "Foshan" },
  { id: 6942553, name: "Paris" },
  { id: 7407364, name: "Dongguan" },
  { id: 7661856, name: "Jinan" },
  { id: 8010518, name: "Lagos" },
];

/** Get a random city from most populated cities. */
export function getRandomCity() {
  return cities[Math.floor(Math.random() * cities.length)];
}
